package multmatrix;

public class SimulThread extends Thread{
	private int a;
	private int c;	
	double[] m1row;
	double [][]m2;
	
	public SimulThread(int a, int c,double[] m1row,double [][]m2) {
		super();
		this.a = a;
		this.c = c; 
		this.m1row = m1row; 
		this.m2 = m2; 
	}
	@Override
	public void run() {
		double sum=0;
		for(int i=0;i<m1row.length;i++) {
			sum+=m1row[i]*m2[i][c];
		}
		Simul.add(a,c,sum);
	}
}
